package com.hzhr.iot.collect.constant.entity.constant;

import com.hzhr.iot.collect.constant.entity.DataareatmpEntity;
import com.hzhr.iot.collect.util.StrUtil;

import java.util.HashMap;
import java.util.Map;

public class DataareatmpEntityConstant {
	public static Map<Integer, DataareatmpEntity> MAP = new HashMap<Integer, DataareatmpEntity>() {
		private static final long serialVersionUID = 1L;

		{
			putAll(getEntityMap(getEntity(1, 23, 46, 2, null, "12,13,16,17,20,23,27,39,38,40,52,53,54,55,56,57,58", null, null, null)));
			putAll(getEntityMap(getEntity(2, 23, 36, 2, null,"25,26,27,41", null, null, null)));
			putAll(getEntityMap(getEntity(3, 23, 7, 2, null,"27,28,29", null, null, null)));
			putAll(getEntityMap(getEntity(4, 23, 0, 9, null,"27,30,31", null, null, null)));
			putAll(getEntityMap(getEntity(5, 23, 7, 2, null,"27,32,33,34", null, null, null)));
			putAll(getEntityMap(getEntity(6, 23, 0, 7, null,"27,35,36,37", null, null, null)));
			putAll(getEntityMap(getEntity(7, 23, 0, 2, null,"27", null, null, null)));
			putAll(getEntityMap(getEntity(8, 23, 0, 2, null,"27", null, null, null)));
			putAll(getEntityMap(getEntity(9, 23, 46, 2, null,"12,13,16,17,20,23,27,39,38,40,52,53,54,55,56,57,58", null, null, null)));
			putAll(getEntityMap(getEntity(10, 23, 1, 2, null,"27,42", null, null, null)));
			putAll(getEntityMap(getEntity(11, 23, 0, 3, null,"27,43", null, null, null)));
			putAll(getEntityMap(getEntity(12, 23, 1, 2, null,"27,44", null, null, null)));
			putAll(getEntityMap(getEntity(13, 23, 0, 3, null,"27,45", null, null, null)));
			putAll(getEntityMap(getEntity(14, 23, 0, null, "48","65,66,27,46,47,48,51", "65,66,51", null, null)));
			putAll(getEntityMap(getEntity(15, 23, 0, null, "48","49,50,27,46,47,48,51", "49,50,51", null, null)));
			putAll(getEntityMap(getEntity(16, 23, 10, 2, null,"27,59,60,61", null, null, null)));
			putAll(getEntityMap(getEntity(17, 23, 2, 2, null,"27,61", null, null, null)));
			putAll(getEntityMap(getEntity(18, 23, 0, null, "168","27,46,47,168,62,63,64", "62,63,64", null, null)));
			putAll(getEntityMap(getEntity(19, 23, 0, 2, null,"27", null, null, null)));
			putAll(getEntityMap(getEntity(20, 23, 0, 48, null,"67,68,69,70,71,72,27,73,74,75,76,77,78,79,80,81,82", null, null, null)));
			putAll(getEntityMap(getEntity(68, 23, 7, 2, null,"296,297", null, null, null)));

			putAll(getEntityMap(getEntity(21, 23, 5, 7, null,"27,83,84", null, null, null)));
			putAll(getEntityMap(getEntity(22, 23, 15, 7, null,"27,83,84,85", null, null, null)));
			putAll(getEntityMap(getEntity(23, 23, 5, 7, null,"27,83,84", null, null, null)));
			putAll(getEntityMap(getEntity(24, 23, 5, 7, null,"27,83,84", null, null, null)));
			putAll(getEntityMap(getEntity(25, 23, 7, 7, null,"27,83,84,86", null, null, null)));
			putAll(getEntityMap(getEntity(26, 23, 5, 7, null,"27,83,84,87", null, null, null)));
			putAll(getEntityMap(getEntity(27, 23, 5, 14, null,"27,83,84,166,167", null, null, null)));
			putAll(getEntityMap(getEntity(28, 23, 5, 14, null,"27,83,84,88,89", null, null, null)));
			putAll(getEntityMap(getEntity(29, 23, 15, 15, null,"27,83,84,90,93,91,94,92", null, null, null)));
			putAll(getEntityMap(getEntity(30, 23, 13, 17, null,"27,83,84,90,93,91,94,95", null, null, null)));
			putAll(getEntityMap(getEntity(31, 23, 11, 7, null,"27,96,97,98,83,84", null, null, null)));
			putAll(getEntityMap(getEntity(32, 23, 5, 13, null,"27,83,84,99,100,101", null, null, null)));
			putAll(getEntityMap(getEntity(33, 23, 20, 15, null,"27,102,103,83,84,90,93,91,94", null, null, null)));
			putAll(getEntityMap(getEntity(34, 23, 13, 22, null,"27,83,84,104,105,90,93,91,94", null, null, null)));
			putAll(getEntityMap(getEntity(35, 23, 20, 60, null,"102,103,27,83,84,104,105,90,93,91,94,113,115,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161", null, null, null)));
			putAll(getEntityMap(getEntity(36, 23, null, 15, "117,118","27,117,83,84,90,93,91,94,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145", "127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145", null, null)));
			putAll(getEntityMap(getEntity(37, 23, 13, 15, null,"27,83,90,91,84,93,94", null, null, null)));
			putAll(getEntityMap(getEntity(38, 23, 13, 15, null,"27,83,90,91,84,93,94", null, null, null)));
			putAll(getEntityMap(getEntity(39, 23, 13, 16, null,"27,83,90,91,84,93,94,162", null, null, null)));
			putAll(getEntityMap(getEntity(40, 23, 24, 15, null,"27,83,90,91,84,93,94,163,164,165", null, null, null)));
			putAll(getEntityMap(getEntity(41, 23, 13, 15, null,"27,83,90,91,84,93,94", null, null, null)));

			putAll(getEntityMap(getEntity(42, 13, 36, 7, null,"26,27,41,173,174,175,177", null, null, null)));
			putAll(getEntityMap(getEntity(43, 13, 1, 2, null,"27,179", null, null, null)));
			putAll(getEntityMap(getEntity(44, 13, 7, 9, null,"27,180,181,182,183", null, null, null)));
			putAll(getEntityMap(getEntity(45, 13, 2, 4, null,"27,184,185,186,187", null, null, null)));
			putAll(getEntityMap(getEntity(46, 13, 8, 10, null,"27,188,189", null, null, null)));
			putAll(getEntityMap(getEntity(47, 13, 6, 8, null,"27,190,191,192,193", null, null, null)));
			putAll(getEntityMap(getEntity(48, 13, 2, 4, null,"27,194,195,196,197", null, null, null)));
			putAll(getEntityMap(getEntity(49, 13, 2, 4, null,"27,198,199,200,201", null, null, null)));
			putAll(getEntityMap(getEntity(50, 13, 3, 5, null,"27,202,203", null, null, null)));
			putAll(getEntityMap(getEntity(51, 13, 0, 22, null,"27,207,208,209,210,211,212,213,214,215", null, null, null)));
			putAll(getEntityMap(getEntity(52, 13, 0, null, null,"27,216,217,218,219,220,221", "216,217,218,219,220,221", 2, 14)));
			putAll(getEntityMap(getEntity(53, 13, null, 2, null,"27,222,223,224,225,226,227", "222,223,224,225,226,227", 0, 14)));
			putAll(getEntityMap(getEntity(54, 13, 14, 2, null,"27,228,229,230,231,232,233", null, null, null)));
			putAll(getEntityMap(getEntity(55, 13, 9, 2, null,"27,234,235,236", null, null, null)));
			putAll(getEntityMap(getEntity(56, 13, 2, 2, null,"27,237", null, null, null)));
			putAll(getEntityMap(getEntity(57, 13, 0, null, null,"27,238,239,240", "238,239,240", 2, 9)));

			putAll(getEntityMap(getEntity(58, 23, 5, 7, null, "241,316,322", null, null, null)));
			putAll(getEntityMap(getEntity(59, 23, 5, 7, null, "242,316,323", null, null, null)));
			putAll(getEntityMap(getEntity(60, 23, 7, 7, null, "243,244,245,246", null, null, null)));
			putAll(getEntityMap(getEntity(61, 23, 5, 9, null, "247,248,249,250", null, null, null)));
			putAll(getEntityMap(getEntity(62, 23, 12, 7, null, "251,252,253,254,255", null, null, null)));
			putAll(getEntityMap(getEntity(63, 23, 5, 14, null, "256,257,258,259,260", null, null, null)));
			putAll(getEntityMap(getEntity(64, 23, 17, 34, null, "261,262,263,264,265,266,267,268,269,270,271,272,273", null, null, null)));
			putAll(getEntityMap(getEntity(65, 23, 17, 19, null, "274,275,276,277,278,279,280", null, null, null)));
			putAll(getEntityMap(getEntity(66, 23, 17, 19, null, "281,282,283,284,285,286,287", null, null, null)));
			putAll(getEntityMap(getEntity(67, 23, 17, 20, null, "288,289,290,291,292,293,294,295", null, null, null)));

			putAll(getEntityMap(getEntity(69, 23, 23, 15, null, "298,299,300,301,302,304,305,306,307,318,319", null, null, null)));
			putAll(getEntityMap(getEntity(70, 23, 5, 25, null, "308,309,310,311,312,313,314,320,321", null, null, null)));

			putAll(getEntityMap(getEntity(71, 23, 32, 12, null, "324,325,326,327,328,329,330,331", null, null, null)));
			putAll(getEntityMap(getEntity(72, 23, 17, 12, null, "332,333,334,335,336,337", null, null, null)));
			putAll(getEntityMap(getEntity(73, 23, 10, null, "345", "338,339,340,341,342,343,344,345,346", "346", null, null)));
			putAll(getEntityMap(getEntity(74, 23, 12, null, "354", "347,348,349,350,351,352,353,354,355,356,357,359,360,372,373", "355,356,357,358,359,360", null, null)));

			putAll(getEntityMap(getEntity(75, 23, 5, 7, null, "241,316,322", null, null, null)));
			putAll(getEntityMap(getEntity(76, 23, 5, 14, null, "242,316,323,361,362", null, null, null)));
			putAll(getEntityMap(getEntity(77, 23, 5, 7, null, "241,316,322", null, null, null)));
			putAll(getEntityMap(getEntity(78, 23, 7, 7, null, "243,244,245,246", null, null, null)));
			putAll(getEntityMap(getEntity(79, 23, 5, 9, null, "247,248,249,250", null, null, null)));
			putAll(getEntityMap(getEntity(80, 23, 12, 7, null, "251,252,253,254,255", null, null, null)));
			putAll(getEntityMap(getEntity(81, 23, 5, 14, null, "256,257,258,259,260", null, null, null)));
			putAll(getEntityMap(getEntity(82, 23, 17, 38, null, "261,262,263,264,265,266,267,268,269,270,271,272,273,363,364,365", null, null, null)));
			putAll(getEntityMap(getEntity(83, 23, 17, 19, null, "274,275,276,277,278,279,280", null, null, null)));
			putAll(getEntityMap(getEntity(84, 23, 17, 19, null, "281,282,283,284,285,286,287", null, null, null)));
			putAll(getEntityMap(getEntity(85, 23, 17, 20, null, "288,289,290,291,292,293,294,295", null, null, null)));
			putAll(getEntityMap(getEntity(86, 23, 19, 12, null, "241,316,322,339,342,369,370,371", null, null, null)));
			putAll(getEntityMap(getEntity(87, 23, 26, 19, null, "241,316,322,339,342,366,367,368,326,355", null, null, null)));

			putAll(getEntityMap(getEntity(88, 23, 19, 12, null, "241,316,322,339,342,369,370,371", null, null, null)));
			putAll(getEntityMap(getEntity(89, 23, 26, 19, null, "241,316,322,339,342,366,367,368,326,355", null, null, null)));
		}
	};

	private static DataareatmpEntity getEntity(Integer id, Integer startindex, Integer reqfieldsizesum, 
											   Integer respfieldsizesum, String detailcountfieldIdListStr, String fieldIdListStr, 
											   String subpackagefieldIdListStr, Integer subPackageStartIndex,
											   Integer subPackageSize) {
		DataareatmpEntity result = new DataareatmpEntity();
		result.setId(id);
		result.setStartindex(startindex);
		result.setReqfieldsizesum(reqfieldsizesum);
		result.setRespfieldsizesum(respfieldsizesum);
		result.setDetailconutfieldIdList(StrUtil.str2integerList(detailcountfieldIdListStr));
		result.setSubpackagefieldIdList(StrUtil.str2integerList(subpackagefieldIdListStr));
		result.setFieldIdList(StrUtil.str2integerList(fieldIdListStr));
		result.setSubPackageStartIndex(subPackageStartIndex);
		result.setSubPackageSize(subPackageSize);
		return result;
	}

	private static Map<Integer, DataareatmpEntity> getEntityMap(DataareatmpEntity messagefieldtmpEntity) {
		Map<Integer, DataareatmpEntity> map = new HashMap<>();
		map.put(messagefieldtmpEntity.getId(), messagefieldtmpEntity);
		return map;
	}
}
